-- GENERATED SPELL FOR [Rune Reaver] --


function spell0_26268(pUnit, Event) --@Boulder Impact,Self--
pUnit:FullCastSpellOnTarget(47007,pUnit)
pUnit:RegisterEvent('Sorts_26268', 1296, 1)
end

function spell1_26268(pUnit, Event) --@Rune of Retribution,Self--
pUnit:FullCastSpellOnTarget(52628,pUnit)
pUnit:RegisterEvent('Sorts_26268', 542, 1)
end

function Sorts_26268(pUnit, Event)
local choix_sorts_26268 = math.random(0, 1)
if choix_sorts_26268 == 0 then
pUnit:RegisterEvent('spell0_26268', 1, 1)
end
if choix_sorts_26268 == 1 then
pUnit:RegisterEvent('spell1_26268', 1, 1)
end
end

function mob26268_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26268', math.random(1500, 3000), 1)
end

function mob26268_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26268_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26268_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26268, 1, 'mob26268_Action')
RegisterUnitEvent(26268, 2, 'mob26268_Leave')
RegisterUnitEvent(26268, 3, 'mob26268_Kill')
RegisterUnitEvent(26268, 4, 'mob26268_Die')
